<? 
session_start();
				
include ('conn.php');
				
$db = get_conn();
				
		  
if ($_GET['id']!=""){
	$sql = "update users set ustatus='A' where id_user=".$_GET['id'];
	$result = mysql_query($sql);
	if($result){
		$script ="<script>document.location.href='../confirmado.php'</script>"; 	  
		echo $script;											
	}else{
		error_handling('users.update - '.$sql,mysql_error());
	}				  
}//update
		  
?>